package com.mc.api.service.impl;

import com.mc.api.domain.LabExpert;
import com.mc.api.domain.User;
import com.mc.api.mapper.UserMapper;
import com.mc.api.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Date;
import java.util.List;

@Service
public class UserServiceImpl implements UserService {
   @Autowired
    private UserMapper userMapper;

    @Override
    public User selectUserByUserName(String userName) {
        return userMapper.selectUserByUserName(userName);
    }

    @Override
    public User selectUserByTel(String phonenumber) {
        return userMapper.selectUserByTel(phonenumber);
    }

    @Override
    public String selectUserUpdatePWD(String username) {
        return userMapper.selectUserUpdatePWD(username);
    }

    @Override
    public List<Integer> selectUserRole(String userId) {
        return userMapper.selectUserRole(userId);
    }

    @Override
    public List<User> selectUserByCreateDate(String taskId) {
        return userMapper.selectUserByCreateDate(taskId);
    }

    @Override
    public List<LabExpert> selectLabExpertDate() {
        return userMapper.selectLabExpertDate();
    }

    @Override
    public List<User> selectUserByUser(String userName) {
        return userMapper.selectUserByUser(userName);
    }

    @Override
    public int updateUserLast(String userName) {
        return userMapper.updateUserLast(userName);
    }
}
